<?php
namespace app\beautiful\model;
use app\beautiful\model\member\MemberModel;
use app\common\model\CommonModel;

class StaffMemberModel extends CommonModel{
    protected  $name = 'beautiful_staff_member';
    protected  $pk   = 'staff_member_id';

    public function member()
    {
        return $this->hasOne(MemberModel::class,'member_id','member_id');
    }

    public function staff()
    {
        return $this->hasOne(StaffModel::class,'staff_id','staff_id');
    }
}